package com.woniu.defecttracking.service;

import com.woniu.defecttracking.entity.AccountRole;
import com.baomidou.mybatisplus.extension.service.IService;
import com.woniu.defecttracking.exception.AccountException;
import com.woniu.defecttracking.exception.RoleException;
import com.woniu.defecttracking.param.UpdateAccountRoleParam;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author tiangle
 * @since 2021-12-31
 */
public interface AccountRoleService extends IService<AccountRole> {
    String getRoles(Integer id);

    List<Integer> getRoleIds(Integer id);

    Boolean saveAccountRoles(UpdateAccountRoleParam updateAccountRoleParam) throws AccountException, RoleException;
}
